export const get_items = () => {
  return JSON.parse(localStorage.getItem('list')) || [];
};
export const save_item = (obj) => {
  var aList = JSON.parse(localStorage.getItem('list')) || [];
  aList.unshift(obj);
  localStorage.setItem('list',JSON.stringify(aList));
};
export const del_item = (list) => {
  localStorage.setItem('list',JSON.stringify(list));
}
export const clean_item = () => {
  localStorage.setItem('list','[]');
}